import request from '@/utils/request'

// 查询楼层信息列表
export function listGuide(query) {
  return request({
    url: '/hospital/guide/list',
    method: 'get',
    params: query
  })
}

// 查询楼层信息详细
export function getGuide(guideId) {
  return request({
    url: '/hospital/guide/' + guideId,
    method: 'get'
  })
}

// 新增楼层信息
export function addGuide(data) {
  return request({
    url: '/hospital/guide',
    method: 'post',
    data: data
  })
}

// 修改楼层信息
export function updateGuide(data) {
  return request({
    url: '/hospital/guide',
    method: 'put',
    data: data
  })
}

// 删除楼层信息
export function delGuide(guideId) {
  return request({
    url: '/hospital/guide/' + guideId,
    method: 'delete'
  })
}
